<!DOCTYPE html>
<html>
<head>
	<title>地磅维护</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="js/mui.js"></script>
    <link href="css/mui.css" rel="stylesheet"/>
    <script src="js/jquery.min.js"></script>
	<link href="css/common.css" rel="stylesheet"/>
	<link href="js/layui/css/layui.css" rel="stylesheet"/> 
	<script src="js/webdb.js"></script>
	
	<!-- Nicky -->
	<link rel="stylesheet" href="css/nicky.css" />
</head>
<body class="bg">
	<header class="mui-bar mui-bar-nav mui-bar-transparent bg main-header" >
		<div class="back"><a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left back" >返回</a></div>
		<div class="back" style="text-align: center;"><a class="mui-icon  mui-pull-center back" >地磅维护</a></div>
	</header>
 
	<div class="mui-content bg" > 
		<div class="formBox formBox3"> 
			<p>
				<label>地磅ID</label>
				<input id="DBID" type="text" placeholder="输入地磅ID" />
			</p>
		</div> 
		
		<div class="btnBox btnBox2"> 
			<button id="btnBack" class="nbtn">返 回</button> 
			<button id="saveBtn" class="nbtn">保 存</button> 
		</div>
  	</div>
  	<script>
  		mui.init();
  		mui.plusReady(function(){
		//$(function(){
	  		var tdbid = getSession('DBID');
	  		if(tdbid){ $('#DBID').val('tdbid'); }
	  		$('#saveBtn').on('click',function(){
	  			var dbid = $('#DBID').val().trim();
	  			if(dbid.length<1){
	  				plus.nativeUI.toast('请输入地磅ID');
	  				return false;
	  			}
	  			plus.nativeUI.toast('地磅ID配置成功');
	  			setSession('DBID',dbid);
	  			mui.back();
	  		});
	  		$('#btnBack').click(function(){
	  			mui.back();
	  		});
	  	});
  	</script>
</body>
</html>